package top.happylaishop.shop.service;

import top.happylaishop.shop.dto.CategoryDto;
import top.happylaishop.shop.dto.UserDto;
import top.happylaishop.shop.pojo.Category;
import top.happylaishop.shop.utils.resp.BaseResponse;
import top.happylaishop.shop.utils.resp.RestResponse;

import java.util.List;

public interface CategoryService {

    BaseResponse add(CategoryDto categoryDto, UserDto userDto);

    BaseResponse update(CategoryDto categoryDto, UserDto userDto);

    RestResponse<List<Category>> listChildrenParallelCategory(Integer categoryId);

    RestResponse<List<Integer>> listCategoryAndChildrenById(Integer categoryId);
}
